#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>  
#import <SystemConfiguration/SystemConfiguration.h>  
#import <netinet/in.h>  
#import <arpa/inet.h>  
#import <netdb.h> 
#import "BookConstants.h"


@interface CommonUtil : NSObject {
}
//将当前数字星期几转变为中文星期几
+(NSString *) getWeekChinese:(int)week;

+(NSString *) getCurrentDate;

+(void) initProvinces:(NSMutableDictionary *)provinceDict;

+(NSString *) getProvinceCode:(NSMutableDictionary *)provinceDict provinceName:(NSString *)pName;

+(NSString *) getSubstring:(NSString *)source prefix:(NSString *)p suffix:(NSString *)s;

+(NSString *) getSubstringTrim:(NSString *)source prefix:(NSString *)p suffix:(NSString *)s;

+ (int)getMaxNumber:(NSArray *) arr;

+(int)getCeiling:(int)aNumber;

+ (BOOL) isConnected; 

+(UIImage*) imageFromPDF:(CGPDFDocumentRef)pdf withPageNumber:(NSUInteger)pageNumber withScale:(CGFloat)scale ;

+ (NSString *)applicationDocumentsDirectory;

//解压文件
//+ (NSString*)unZipData:(NSString *)zipFileName extName:(NSString *)extName;
@end
